class OnceData{
    data={};
    set(key,data){
        return this.data[key]=data;
    }
    //todo:kule 可通过时间戳来保证顺序
    get(key){
        const data=this.data[key];
        delete this.data[key];
        return data;
    }
    has(key){
        return key in this.data;
    }
}
export const genOnceData=()=>{
    return new OnceData();
};
export default genOnceData;